-- require("core.util")
-- local sounds = require("prototypes.entity.sounds")
-- local hit_effects = require("prototypes.entity.hit-effects")

local speed = 0.2

--直接修改机械臂的旋转速度属性
data.raw["inserter"]["fast-inserter"].extension_speed = speed
data.raw["inserter"]["fast-inserter"].rotation_speed = speed

data.raw["inserter"]["filter-inserter"].extension_speed = speed
data.raw["inserter"]["filter-inserter"].rotation_speed = speed

data.raw["inserter"]["stack-inserter"].rotation_speed = speed
data.raw["inserter"]["stack-inserter"].rotation_speed = speed

data.raw["inserter"]["stack-filter-inserter"].rotation_speed = speed
data.raw["inserter"]["stack-filter-inserter"].rotation_speed = speed

-- data:extend({
-- {
--     type = "inserter",
--     name = "fast-inserter",
--     icon = "__base__/graphics/icons/fast-inserter.png",
--     icon_size = 64, icon_mipmaps = 4,
--     flags = {"placeable-neutral", "placeable-player", "player-creation"},
--     minable = { mining_time = 0.1, result = "fast-inserter" },
--     max_health = 150,
--     corpse = "fast-inserter-remnants",
--     dying_explosion = "fast-inserter-explosion",
--     resistances =
--     {
--         {
--         type = "fire",
--         percent = 90
--         }
--     },
--     collision_box = {{-0.15, -0.15}, {0.15, 0.15}},
--     selection_box = {{-0.4, -0.35}, {0.4, 0.45}},
--     damaged_trigger_effect = hit_effects.entity(),
--     pickup_position = {0, -1},
--     insert_position = {0, 1.2},
--     energy_per_movement = "7KJ",
--     energy_per_rotation = "7KJ",
--     energy_source =
--     {
--         type = "electric",
--         usage_priority = "secondary-input",
--         drain = "0.5kW"
--     },
--     extension_speed = 0.2,
--     rotation_speed = 0.2,
--     fast_replaceable_group = "inserter",
--     next_upgrade = "stack-inserter",
--     vehicle_impact_sound = sounds.generic_impact,
--     open_sound = sounds.machine_open,
--     close_sound = sounds.machine_close,
--     working_sound = sounds.inserter_fast,
--     hand_base_picture =
--     {
--         filename = "__base__/graphics/entity/fast-inserter/fast-inserter-hand-base.png",
--         priority = "extra-high",
--         width = 8,
--         height = 34,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/fast-inserter/hr-fast-inserter-hand-base.png",
--         priority = "extra-high",
--         width = 32,
--         height = 136,
--         scale = 0.25
--         }
--     },
--     hand_closed_picture =
--     {
--         filename = "__base__/graphics/entity/fast-inserter/fast-inserter-hand-closed.png",
--         priority = "extra-high",
--         width = 18,
--         height = 41,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/fast-inserter/hr-fast-inserter-hand-closed.png",
--         priority = "extra-high",
--         width = 72,
--         height = 164,
--         scale = 0.25
--         }
--     },
--     hand_open_picture =
--     {
--         filename = "__base__/graphics/entity/fast-inserter/fast-inserter-hand-open.png",
--         priority = "extra-high",
--         width = 18,
--         height = 41,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/fast-inserter/hr-fast-inserter-hand-open.png",
--         priority = "extra-high",
--         width = 72,
--         height = 164,
--         scale = 0.25
--         }
--     },
--     hand_base_shadow =
--     {
--         filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-base-shadow.png",
--         priority = "extra-high",
--         width = 8,
--         height = 33,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-base-shadow.png",
--         priority = "extra-high",
--         width = 32,
--         height = 132,
--         scale = 0.25
--         }
--     },
--     hand_closed_shadow =
--     {
--         filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-closed-shadow.png",
--         priority = "extra-high",
--         width = 18,
--         height = 41,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-closed-shadow.png",
--         priority = "extra-high",
--         width = 72,
--         height = 164,
--         scale = 0.25
--         }
--     },
--     hand_open_shadow =
--     {
--         filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-open-shadow.png",
--         priority = "extra-high",
--         width = 18,
--         height = 41,
--         hr_version =
--         {
--         filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-open-shadow.png",
--         priority = "extra-high",
--         width = 72,
--         height = 164,
--         scale = 0.25
--         }
--     },
--     platform_picture =
--     {
--         sheet =
--         {
--         filename = "__base__/graphics/entity/fast-inserter/fast-inserter-platform.png",
--         priority = "extra-high",
--         width = 46,
--         height = 46,
--         shift = {0.09375, 0},
--         hr_version =
--         {
--             filename = "__base__/graphics/entity/fast-inserter/hr-fast-inserter-platform.png",
--             priority = "extra-high",
--             width = 105,
--             height = 79,
--             shift = util.by_pixel(1.5, 7.5-1),
--             scale = 0.5
--         }
--         }
--     },
--     circuit_wire_connection_points = circuit_connector_definitions["inserter"].points,
--     circuit_connector_sprites = circuit_connector_definitions["inserter"].sprites,
--     circuit_wire_max_distance = inserter_circuit_wire_max_distance,
--     default_stack_control_input_signal = inserter_default_stack_control_input_signal
-- },
-- {
--   type = "inserter",
--   name = "filter-inserter",
--   icon = "__base__/graphics/icons/filter-inserter.png",
--   icon_size = 64, icon_mipmaps = 4,
--   flags = {"placeable-neutral", "placeable-player", "player-creation"},
--   minable = {mining_time = 0.1, result = "filter-inserter"},
--   max_health = 150,
--   corpse = "filter-inserter-remnants",
--   dying_explosion = "filter-inserter-explosion",
--   resistances =
--   {
--     {
--       type = "fire",
--       percent = 90
--     }
--   },
--   vehicle_impact_sound = sounds.generic_impact,
--   open_sound = sounds.machine_open,
--   close_sound = sounds.machine_close,
--   working_sound = sounds.inserter_fast,
--   collision_box = {{-0.15, -0.15}, {0.15, 0.15}},
--   selection_box = {{-0.4, -0.35}, {0.4, 0.45}},
--   damaged_trigger_effect = hit_effects.entity(),
--   pickup_position = {0, -1},
--   insert_position = {0, 1.2},
--   energy_per_movement = "8KJ",
--   energy_per_rotation = "8KJ",
--   energy_source =
--   {
--     type = "electric",
--     usage_priority = "secondary-input",
--     drain = "0.5kW"
--   },
--   extension_speed = 0.2,
--   rotation_speed = 0.2,
--   fast_replaceable_group = "inserter",
--   filter_count = 5,
--   hand_base_picture =
--   {
--     filename = "__base__/graphics/entity/filter-inserter/filter-inserter-hand-base.png",
--     priority = "extra-high",
--     width = 8,
--     height = 34,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/filter-inserter/hr-filter-inserter-hand-base.png",
--       priority = "extra-high",
--       width = 32,
--       height = 136,
--       scale = 0.25
--     }
--   },
--   hand_closed_picture =
--   {
--     filename = "__base__/graphics/entity/filter-inserter/filter-inserter-hand-closed.png",
--     priority = "extra-high",
--     width = 18,
--     height = 41,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/filter-inserter/hr-filter-inserter-hand-closed.png",
--       priority = "extra-high",
--       width = 72,
--       height = 164,
--       scale = 0.25
--     }
--   },
--   hand_open_picture =
--   {
--     filename = "__base__/graphics/entity/filter-inserter/filter-inserter-hand-open.png",
--     priority = "extra-high",
--     width = 18,
--     height = 41,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/filter-inserter/hr-filter-inserter-hand-open.png",
--       priority = "extra-high",
--       width = 72,
--       height = 164,
--       scale = 0.25
--     }
--   },
--   hand_base_shadow =
--   {
--     filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-base-shadow.png",
--     priority = "extra-high",
--     width = 8,
--     height = 33,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-base-shadow.png",
--       priority = "extra-high",
--       width = 32,
--       height = 132,
--       scale = 0.25
--     }
--   },
--   hand_closed_shadow =
--   {
--     filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-closed-shadow.png",
--     priority = "extra-high",
--     width = 18,
--     height = 41,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-closed-shadow.png",
--       priority = "extra-high",
--       width = 72,
--       height = 164,
--       scale = 0.25
--     }
--   },
--   hand_open_shadow =
--   {
--     filename = "__base__/graphics/entity/burner-inserter/burner-inserter-hand-open-shadow.png",
--     priority = "extra-high",
--     width = 18,
--     height = 41,
--     hr_version =
--     {
--       filename = "__base__/graphics/entity/burner-inserter/hr-burner-inserter-hand-open-shadow.png",
--       priority = "extra-high",
--       width = 72,
--       height = 164,
--       scale = 0.25
--     }
--   },
--   platform_picture =
--   {
--     sheet=
--     {
--       filename = "__base__/graphics/entity/filter-inserter/filter-inserter-platform.png",
--       priority = "extra-high",
--       width = 46,
--       height = 46,
--       shift = {0.09375, 0},
--       hr_version =
--       {
--         filename = "__base__/graphics/entity/filter-inserter/hr-filter-inserter-platform.png",
--         priority = "extra-high",
--         width = 105,
--         height = 79,
--         shift = util.by_pixel(1.5, 7.5-1),
--         scale = 0.5
--       }
--     }
--   },

--   circuit_wire_connection_points = circuit_connector_definitions["inserter"].points,
--   circuit_connector_sprites = circuit_connector_definitions["inserter"].sprites,
--   circuit_wire_max_distance = inserter_circuit_wire_max_distance,
--   default_stack_control_input_signal = inserter_default_stack_control_input_signal
-- }
-- })
